
use nat_BLA_data_1945_2020, clear

tsset code year

*Copy available 
egen copyavailable_tot = rowtotal(copyavailable?)

by code: gen copyavailable_totsum = sum(copyavailable_tot)

gen copyshare_totsum = copyavailable_totsum/bla_totsum

*1) Number of countries with at least 1 BLA - line graph

	*a) All countries
	
	preserve

		collapse (sum) bla_past, by(year)
		
		#delimit ;
		
		twoway (line bla_past year, lc(gs8) lw(*2)), xlab(#15, angle(45) labsize(*0.7)) 
			ylab(#15, labsize(*0.7) angle(0)) graphregion(color(white)) xt("") yt("") 
			name(bla_countries, replace);		
		
		#delimit cr
		

	restore
